import request from '@/utils/request'

//商品分类
/**
 * 获取商品分类列表
 * @param {page,limit,keywords} data 
 * @returns 
 */

export function categoryList(data) {
    return request({
        url: '/admin/goods/productclass/classList',
        method: 'post',
        data
    })
}

export function addCategory(data) {
    return request({
        url: '/admin/goods/productclass/addClass',
        method: 'post',
        data
    })
}

export function editCategory(data) {
    return request({
        url: '/admin/goods/productclass/editClass',
        method: 'post',
        data
    })
}

export function delCategory(data) {
    return request({
        url: '/admin/goods/productclass/delClass',
        method: 'post',
        data
    })
}
